import instance from '@/utils/request';

export function getcarapi(data) {
    return instance.request({
        url: "api/Area/GetCar",
        method: "post",
        data
    })
}

export function getcaridapi(data) {
    return instance.request({
        url: "api/Area/GetCarById",
        method: "post",
        data
    })
}

export function addcarapi(data) {
    return instance.request({
        url: "api/Area/PostAddCar",
        method: "post",
        data
    })
}

export function updatcarapi(data) {
    return instance.request({
        url: "api/Area/PutUpdateCar",
        method: "put",
        data
    })
}

export function deletecarapi(data) {
    return instance.request({
        url: "api/Area/DeleteById",
        method: "delete",
        data
    })
}

export function deleteallcarapi(data) {
    return instance.request({
        url: "api/Area/DeleteAll",
        method: "delete",
        data
    })
}